package com.yape.dao;


import com.yape.po.CrawlerTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CrawlerTaskMapper {
    CrawlerTask selectById(Integer id);
    List<CrawlerTask> selectEnabledTasks();
    @Update("UPDATE crawler_task SET running = 0")
    int resetAllRunning();
    int updateRunning(@Param("id") Integer id, @Param("running") Boolean running);
}